home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
684
/
684.xpi
/
chrome
/
fireftp.jar
/
content
/
js
/
dialogs
/
preferences.js
< prev
next >
Wrap
Text File
|
2007-08-21
|
1KB
|
38 lines
function readPreferences() {
window.sizeToContent();
portChange();
timeoutChange();
filemodeChange();
integrateChange();
activePortChange();
}
function portChange() {
$('proxyhost').disabled = $('proxytype').value == "";
$('proxyport').disabled = $('proxytype').value == "";
$('proxyhostlabel').disabled = $('proxytype').value == "";
$('proxyportlabel').disabled = $('proxytype').value == "";
}
function timeoutChange() {
$('retrylabel').disabled = !$('timeoutmode').checked;
$('retry').disabled = !$('timeoutmode').checked;
$('attemptslabel').disabled = !$('timeoutmode').checked;
$('attempts').disabled = !$('timeoutmode').checked;
}
function filemodeChange() {
$('asciibutton').disabled = $('filemode').value != 0;
}
function integrateChange() {
$('temppasvmode').disabled = !$('integrateftplinks').checked;
}
function activePortChange() {
$('activelowportlabel').disabled = !$('activeportmode').checked;
$('activelowport').disabled = !$('activeportmode').checked;
$('activehighportlabel').disabled = !$('activeportmode').checked;
$('activehighport').disabled = !$('activeportmode').checked;
}